Create two dynamic panels: the "Optional Question Panel" that shows/hides the optional question and is set to hidden by default, and the "Remaining Questions Panel" that contains the content to move up/down.
Collapse
Generate the prototype and click the optional question to show the optional question and move the remaining questions down. Click the "Hide" link to hide the optional question and move the remaining questions back up.