Add slice method
Merge pull request #165 from SBoudrias/slice

Add slice method