fix clone to work with linked slices