Modified Gallery Module: added prev/next buttons to popup window