Problem solved... turned out to be something stupid as usual...
When I build my pages for the first time all submitted galleries that weren't used got the status "Archived" which is logical. So when I added some script to show more galleries on the same page there weren't enough galleries in my database to show...
Ah well, another lesson learned
