Improves slider animation