Fix issue #5 incorrect slice parameters