Not only is there a slash command, but in the keybind options, there are two solutions. One is to set a key to disable the UI entirely; the other toggles it for screenshots only (but you have to remember whether you've set it on or off for screenshots, since the UI itself is always there if you only use that option).