fix slider switch