Add 'collapse' class back after expanding

The `collapse` class is replaced with the `collapsing` class while expanding, but it is never added back after the animation is complete. This functionality was changed for v3.0.0, but I think this detail was overlooked.

This breaks at least one third-party plugin: http://tarruda.github.io/bootstrap-datetimepicker/