fix infobox position on resize