Use grid size to validate size of box