implement simulation for slits