fixing number of pages for 7 / 8