scroll to svg when resizing it