added opacity animation to slider