added limits to slider