Update helper layer on page resize

I have added an event listener so that when the page is resized the position of the helper layer is updated.