I have seen this example of collapse in w3school
It sounds like using bootstraps accordion would give you the desired effects: http://getbootstrap.com/javascript/#collapse-example-accordion
It will allow you to collapse other divs when opening one, for instance.