Your tree only matters here as far as what you have shown above. You have correctly shown in red above the cats that do collapse this is the correct working order of the program. They are the subcats of dining.
Basically any category you create that contains no thumbs is going to collapse its subcats only. I beleive our photopost gallery link above is a great example here.