Change logic to auto resize grid on window resize