gallery page access fix