Move cell widths loop into window resize event.