Sorting out thumbnail links