Fixed undulating margins in medium layout.