update grid base dimensions