Add position field to pages

Same as #7 but for pages instead.