parametrized size of the grid