Adds hrefs to thumbnails