moved to array of integers for slices column
avoided file corruption by appending data, uses single write instead