hide number of pages if only one page is available (fixes #1259)