no, you need to implement it a bit differently... list the childgallery documents with ditto and use maxigallery in ditto’s template to retrieve pictures from the gallery (&view_gallery=`[+id+]` &limit=`4`)
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
<li>
<a href="[~[+maxigallery.picture.gal_id+]~]">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
[+maxigallery.picture.title:isnot=``:then=`
<p style="width: [+maxigallery.picture_width_thumb+]px;">
[+maxigallery.picture.title:htmlent+]
</p>
`+]
</li>
"He can have a lollipop any time he wants to. That's what it means to be a programmer."