Slider fix
Fix slider code