Added popups on the gallery page.