Layout adjust for grid and img scaling