var horizontalMax = Math.max(Y.GroupUtils.valueOr(terminals["top"], []).length, Y.GroupUtils.valueOr(terminals["bottom"], []).length);