Hi Julien ,
At the moment building a website also with a portfolio with thumbnails, if you scroll below, to the section 'referenties'.
When click on a thumbnail, then opens a subpage (referenties.php) with more images.
http://interieur.webkusthosting.be/
Here the code-snippet on my homepage for the section referenties:
`<div class="columns">
<# make snippet referenties #>
<@ snippet referenties @>
<@ foreach in pagelist @>
<div class="column col-3 col-md-6 col-sm-12 text-center p-md">
<figure class="referentie-image">
<img class="img-responsive" src="@{ headerImage }" />
<figcaption>
<h3>@{ title }</h3>
</figcaption>
<a href="@{ url }"></a>
</figure>
</div>
<@ end @>
<@ end @>
<# load the children pages #>
<@ newPagelist {
type: 'children',
excludeHidden: false
} @>
<# load the children subpages from the parent page '/referenties' #>
<@ with '/referenties' @>
<@ referenties @>
<@ end @>
</div>`
It's not exactly what you ask, but maybe it can help you found out your idea.
Regards,
Christophe