Note the "the blue bar come out the red bar sliding back inside".
The OP's request was to have sliders move back into place, not just disappear as per your version.
e.g. Using your color scheme:
Yellow button triggers the "red slider"
Cyan button triggers the "blue slider"
If the "red slider" is extended (Yellow button was clicked), when clicking on the Cyan button the "red slider" disappears, it does not slide back in place - after which the "blue slider" slides out into position.
Vice versa for clicking the Yellow button when the (Cyan button's) "blue slider" is extended. The "blue slider" does not slide back into place it just disappears and then the "red slider" slides out.
I tried doing a "timeline only" version and I could not get it to consistently run clean with the sliders always sliding in and out properly.