Slice copy using n and p