Make gallery thumbs clickable