Slice to native implementation, further refactoring