swrast: add casts for ImageSlices pointer arithmetic