fix slider animation