Duplicate slicer
Refer to the following example code to see how to duplicate a slicer object