Add functionality to change slides