[fix] Fix resze of paper preview

When the page was resized only the first page of the paper was displayed. Now each page is correcly displayed.