Fixed bug in view_contexts as_slices.