Adding pagination to items display.