Apply height to grid and img preloading