fix post position on resize