check for slice method on arraybuffer