public double getWidth() {
        if (intervals == null || intervals.size() == 0) {
            return 0.0;
        }
        // TODO check indices here:
        return getSubStackWidth(1, intervals.size() - 1);
    }