Add css transitions to slider