Ignore first and last pages in average