Hi guys, I am confused as to how to close gaps when fields are hidden. ach of my questions are placed in their own containers

and i have a dropdown controlling what questions are visible based on the choice, however i am unable to close the gap when those questions are hidden. Thanks in advance for the assist