small change to slider, bugfix