Closing gallery by clicking overlay was not toggling slideshow pause
button off