Single equal should be triple equal.

Also, I think you need to keep the construct like above because if you reopen the slideshow, first time with one pic, second time with multiple, it needs to re-show the buttons.