fix gallery page