How can be done:
You can make changes in the layout and then reinitialize Gantt.
I.e. just call
gantt.init("gantt_here") after you change the layout config.
Here is a snippet you can see how it can be implemented for the right-side column grid.
Please push the buttons in the top
Also, this snippet maybe will be useful for you. Here you can show and hide the resource diagram.