Validator for entering slices
Merge pull request #3 from m4rw3r/mw/slice

Validator for entering slices.
TODO: should fix golint's comments