attempt to fix slider bug