added responsive functionality to slider