There is already a function of the inventory that does just this. Under the inventory options (the little gear) there is an option to show/hide bags. This turns off the bars and compacts them all into the appearance of one giant bag.
“That is not dead which can eternal lie,
and with strange aeons even death may die.”