Add logic to resize grid height on window.resize event