Currently there is not a scripting API or user interface for altering the dimensions of a deck.
Technically you could use deck.encoded, newdeck[], and danger.open[] to serialize a deck to a string, manipulate it, decode it as a deck, and switch the active document to that modified deck, but I don't recommend this.
What are you trying to do which would need to dynamically resize a deck?