Copy slicer
Refer to the following example code to see how to copy a slicer object