<script>
window.addEventListener('DOMContentLoaded', function() {
var portfolios = Array.prototype.slice.call(document.querySelectorAll('.gdlr-core-portfolio-title'));
portfolios.forEach(function (element) {
var parent = element.parentNode.parentNode;
var href = element.querySelector('a').href;
var link = document.createElement('a');
link.href = href;
parent.querySelector('.gdlr-core-portfolio-thumbnail').appendChild(link);
link.appendChild(parent.querySelector('.gdlr-core-portfolio-thumbnail img'));
});
});
</script>