update marker positions on resize