update slider animation