support out of range slice
Merge pull request #25 from AndreasMadsen/slice-clamp

support out of range slice