grid design of stacks