Create dynamicSlice.py