page number shift code (would make sense for html)