Adding upper and lower bounds to the slider