Slider animation optimize.