Hiding Elements with a toggle

Thank you, but I am not quite sure what the collapsing vs. hiding does. Also, I am using a switch feature instead of a button. This is what I have so far