faster saving/loading slices