By placing a CMS toggle stack into a block grid item you can control whether its content is displayed or not from the CMS admin panel. This is fine but it will not remove the gird item itself and you will be left with a space in the grid. The content is gone but the grid item is still there, taking up space and looking very messy.

The following jQuery should be placed in either your site-wide or page inspector Javascript code. It is very simple in implementation. Because the CMS toggle works using php, server side, then if the toggle is turned off there will be no content inside the toggle stack wrapper. The code simply looks for any toggle stacks that are in a block grid and have no content. Once found, the parent block grid item is removed from the DOM.

You can copy the code directly from here:

https://gist.github.com/atavernor/ad618a657945125100a087b3db56d5a8