fix positioning of frames relative to the page

Since there is only one page at the moment, this means positioning relative to the first page.
These attributes are assumed so far:
style:vertical-pos="from-top"
style:vertical-rel="page"
style:horizontal-pos="from-left"
style:horizontal-rel="page"