Make switching between slides work