Fixed the slider not displayed correctly

Thanks to Eimihar El-Meruiy for the fixed