gallery page code fix