Sorry, I meant the syntax. Please use "toggle" instead of just hide.
toggle() will call show() if the argument is true. We need this because when you reopen the slideshow after the buttons were hidden, then they need to be re-shown.