Layers in the tree should stay put and not collapse when switching variants

when you select a new variant, the layers should stay open and not collapse. i have to reopen the layers every time i change variants