A slice is a region of a frame within an AVC or HEVC-encoded video that is encoded relative to only that region as opposed to the entirety of the frame. This allows for the codec to express changes to that slice in a more compact way than if it had to express those changes across the entire frame, as well as compose P and B slices in a single frame.