Could you bring out of pagination into separate file and use it through include tag?