change size of folds depending upon sample size