fixed slicing in frame processing