e.display = isGridLayout() ? 'block' : 'none';

    let spaceBetweenOn = !isGridLayout() && spaceBetween.checked;
    horizontalSpacingDiagram.style.display = isHorizontalLayout() && !spaceBetweenOn ? 'block' : 'none';
    horizontalSpacingDiagramSpaceBetween.style.display = isHorizontalLayout() && spaceBetweenOn ? 'block' : 'none';
    verticalSpacingDiagram.style.display = isVerticalLayout() && !spaceBetweenOn ? 'block' : 'none';
    verticalSpacingDiagramSpaceBetween.style.display = isVerticalLayout() &&