Added ability to define custom pagination items

I have added an option for a custom pagination item callback. My use case was to show preview thumbnails in the pagination.