changes in slider, and added css transition