Mmap slice improve

closes gh-3364

implemented as module level function as suggested in the issue