adding grid to gallery page