fix a thumbnail bug, account for struct sequences longer than 2