Excellent, works like a charm!
Many thanks for this and the previous one for randomizing them that I also found here.
I use those for creating a design portfolio, simply by using GP’s masonry layout for posts archives. No need of another plugin. Featured images are design screenshots in full height and details & links to the websites are in the excerpts.