resizing page when content is hidden

To avoid the blank space —> use collapse and expand-commands.

collapse —> lets collapsing an element
expand —> expands an collapsed element

When you use just hide or show, this also will just hide or show the element, it gets invisible, but the element is still on place.