Here, done it already.

Modified MaxiGallery 0.5 beta 2 rev 049.
Near the top of the maxigallery.php (line 17) substitute the following code
///////////////////////////////////////////////////////////////////////////////////////////////////
// Default values (can be overridden in the snippet call),
// No need to edit unless you know what you're doing!
//
$mgconfig['debug'] = (isset($debug)) ? $debug : 0; //[0 | 1] display debug trace
$mgconfig['lang'] = (isset($lang)) ? $lang : "en"; // [ en | fi | de | fr ] (you can add more by your self, see lang_en.php for example)
with
///////////////////////////////////////////////////////////////////////////////////////////////////
// Default values (can be overridden in the snippet call),
// No need to edit unless you know what you're doing!
//
$mgconfig['parentId'] = (isset($parentId)) ? $parentId : false; // [ true | false ]
$mgconfig['debug'] = (isset($debug)) ? $debug : 0; //[0 | 1] display debug trace
$mgconfig['lang'] = (isset($lang)) ? $lang : "en"; // [ en | fi | de | fr ] (you can add more by your self, see lang_en.php for example)
This adds a parameter (parentId) to the snippet call.
And now, near line 608 change
//-------------------------------------------------------------------------------------------------
// Childgalleries
//-------------------------------------------------------------------------------------------------
if($mg->mgconfig['display']=="childgalleries") {
$pageinfo=$modx->getPageInfo($modx->documentIdentifier,1, "id, pagetitle, description, alias, createdby");
$children = $mg->getAllSubDocuments($pageinfo['id'], "menuindex", "asc", $mg->mgconfig['childgalleries_level_limit'], true, false); with
//-------------------------------------------------------------------------------------------------
// Childgalleries
//-------------------------------------------------------------------------------------------------
if($mg->mgconfig['display']=="childgalleries") {
if ($mg->mgconfig['parentId'] != false) {
$parent_Id = $mg->mgconfig['parentId'];
} else {
$pageinfo=$modx->getPageInfo($modx->documentIdentifier,1, "id, pagetitle, description, alias, createdby");
$parent_Id = $pageinfo['id'];
}
$children = $mg->getAllSubDocuments($parent_Id, "menuindex", "asc", $mg->mgconfig['childgalleries_level_limit'], true, false);