Adjusts margin for overlay