put gallery page items in a grid