gallery page sorted out