Removed obsolete ui-bootstrap library.
Add slop-factor for triggering collapsibility, so that it's only enabled if there's going to be a noticable reduction.