Update grid size