fix slider glitch