Left Navigation Bar with button to expand, collapse to enable more Content space

I’m having trouble with
Creating a button to collapse the left nav bar. After adding code to button, and rendering in Test Site, the left nav bar shifts right, the button does not move, the content does not fill the new space.

Working in
Wix Studio Editor Dev Mode

What I’m trying to do
See Image below

What I’ve tried so far
AI Code Generator, each iteration, but things it has me try it says are not available in Wix Studio, so wasted effort.

I played around with this a while back for a similar set up. When editor X shut down and you could no longer pin a section to the side.

Its a bit of a work around as I had to double up the right hand content and just used show/hide code.

Maybe there is a better way to do now, but havnt had any jobs that require it to test more.

test site

export function vectorImage5_click(event) {
    $w('#box2').show();
    $w('#box5').hide();
    $w('#text4').hide();
    $w('#text5').show();

}

export function vectorImage1_click(event) {
    $w('#box2').hide();
    $w('#box5').show();
    $w('#text5').hide();
    $w('#text4').show();
}