slice extension method

Added a very basic slice extension method.