I assume your galleries are all children of one resource "galleries". Then in its template you need a Ditto call like this:
[!Ditto? &parents=`[*id*]` &sortBy=`menuindex` &sortDir=`ASC` &tpl=`GalleryTeaserTpl` &display=`999` !]
Here the template "GalleryTeaserTpl" contains the MaxiGallery call:
[[MaxiGallery? &view_gallery=`[+id+]` &manage_target=`888` &order_by=`random` &limit=`1` &manageButtonTpl=`` ]]
where instead of the hard coded [tt]777[/tt] you have to take [+id+], so MaxiGallery is displaying the individual gallery for the actual Ditto list item.
The Ditto parameter [tt]&parents=`[*id*]`[/tt] indicates that Ditto has to list all the children of the resource which contains the Ditto call.
In case you need the listing not on the page "galleries" but on another page, you can use [tt]&parents=`111`[/tt] , if [tt]111[/tt] is the id of your page "galleries".
If your galleries are not children of a single resource, you can use the [tt]&documents[/tt] parameter instead of [tt]&parents[/tt] and just indicate all the gallery pages, f. i. [tt]&documents=`777,778,911,912,913`[/tt] .