Thank you pcmoor,
Thank you for taking the time to look into this.
The end result is correct, all 4 panels next to each other in a vertical stand.
However the action in between is suppose to be different.
taking your example:
at 1st click mat 1 and 2 should only fold , mat 3 and 4 must follow sliding (no fold).
at 2nd click mat 3 and 4 should fold next to 1 and 2.
So instead of 2 actions at 1 click (actually 4 in your case), I need 1 action at each different click.
Then from there on I can reverse for closing again.