updating image slices