slider animation flag prevents multiple events