Add dumpSlice function
Expand example to create projection