Added iterables.slice

Added iterables.slice implementation to replace the one in the PR I just closed