fix slider bug