Creating a dynamic gallery

I am trying to create a gallery which displays the images from the collections, I can get the thumbnails to work but not the media. I am not great at the coding side, can anyone help? I was very kindly given this link http://blog.jonajo.com/posts/webflow-lightbox-collections-hack/

However it is past my skill set in coding.

Please help.

Many thanks

David