update grid widths