You can limit the number of folders the image gallery creator will traverse to by setting an upper bound for the recursion depth.
Tu dikarî hejmara peldankan bi sînor bikî yên afirandêra pêşengehê dê li ser here- were bi avakirina sînora jor re ji bo kûrahiya dubare- bang kirinê.