Hi,
I have a nested containers like below image. The selected is the main container and there are two nested containers in it.

Both the containers having galleries in it and I want that if the gallery or the container 1 clicked, then its height should get increased and the other containers height should be minimized. And when the container 2 clicked its height should be increased and the 1st should be decreased.
Just looking for help on how to achieve this please.
Warm Regards,