Implements the image slider.