Added forward/backward functionality to slider