Correct active link in thumbnails