updated the slider