add slicing support to p2d command line options