and this CSS:
I added an eventlistener to the minify button that minifies and expands the parent container. I switched off the toggling function of Bootstrap as it interfered.
Unfortunately the forum refused posting my code. View it at pastebin instead.