shorten number of pages shown