fixed hidden transition (shown.bs.hidden -> hidden.bs.collapse)

fixes #8595