add OpenCV and Slice function