animate the slider