Enh: Allow for slices to be used with sample containers.

Signed-off-by: Klaus Zimmermann <klaus.zimmermann@physik.uni-freiburg.de>
Merge pull request #12 from zklaus/master

Allow for slices in sample containers