Adjust grid size