Auto close blocks

I have a form with 5 blocks that are set to expand and collapse when you click the (+). It starts with the first block expanded and the other 4 blocks collapsed. Is there any way to make the blocks auto expand if an already expanded block is collapsed? In other words when I click the (+) on block 2 it collapses block 1 automatically without me having to click the (-). I’m pretty sure this can be done with check boxes but that’s not practical for the layout of my app.