minor changes to slider: using classes