Make thumbnail links work