Add Pages To Gallery

Hi,

I am using a gallery that loads from an XML file. I would like to add pages to each of the categories.

Example: If I can display 10 images but i have 15 images i need to create a button that would load the next 5 or more images.

How would I start? I understand the concept but am vague on code.

ideas or tutorial would be great.

Thanks

Ponyack