Updated relative position container to prevent layout glitches