limit number of pages on 5

fixes AGPUSH-702