fix margin on resize