For grid layout, made grey wired background container adjust its position if window is resized.