Adjusting the page coordinates to prevent cutoffs