slider animation change and pause to freeze