Adding documentation for slice