Settings - Customize Toolbars and Keys...(v12 Customize Toolbars) - double-click the "Metadata Pane Button" and change the command. Same for the Viewer Pane Button.
https://docs.dopus.com/doku.php?id=reference:command_reference:internal_commands:set
Alternative: Preferences / Location Bar / Options / Horizontal/vertical Layout button