Added ability to switch between slides using nav buttons.