Added boundaries to the slider movement