updated slice example
added path example