Making the slider responsive