Simplify addClass/removeClass in collapse file.

Simplify CSS classes toggling in collapse:
* use `toggleClass(condition)` instead of `condition ? addClass : hideClass`,
* use `removeClass('class1 class2')` instead of `removeClass('class1').removeClass('class2')`