Fixed function name call get_permalink()
Improved getGallery function, by allowing to generate galleries with an img quantity limit, in order to use pagination.
Base class for collections, has a method to fetch data and passing a page number as a parameter