Added option to define how many horizontal spits should be done before a vertical one