Failed attempt to fix slider bug