added minified version
Fixed behaviour of slice out of range indexes