Updated segment collection to take itemsize into account