Stops you from moving past the start and end slide