add vertical reduction of maxHeight on adding new slide from template if
slideContent is non empty