Cable type slot photoelectric sensor