We used 6' tall vertical 2x4s but attached cross braces to add stability.  We wanted to limit the footprint, so only went 4' wide.  Perfect for what we needed.