adjusting grid size