Use grid width in grid check