fixing slider glitch