Added slice method

Added testing and methods for a slice method. Slice results in the same effects as JS slice. 

i.e. $.slice(array,5,8) will return a subarray from positions 5-8