How to expand only 1 item from a repeater?

@jonatandor35 Thank you it works perfectly now! For anyone seeing this in the future, here is our code that works correctly:

$w.onReady(function () {
    $w("#dataset1").onReady(() => {
    $w("#repeater1").onItemReady(($i, iData) => {
        if ($i('#box12').collapsed) {
        $i("#vectorImage2").hide();
        }
        else $i("#vectorImage1").show();
        })
    })
});

export function vectorImage1_click(event) {
 let $item = $w.at(event.context);
 if ($item('#box12').collapsed) {
     $item('#box12').expand();
     $item("#vectorImage2").show();
     $item("#vectorImage1").hide();
 }
 else 
     $item("#box12").collapse();
}


export function vectorImage2_click(event) {
 let $item = $w.at(event.context);
 if ($item('#box12').expand) {
     $item('#box12').collapse();
     $item("#vectorImage1").show();
     $item("#vectorImage2").hide();
 }
 else 
     $item("#box12").expand();
}