-slice implementation

Fixes #18.