difference between slice and index https://stackoverflow.com/questions/509211/understanding-slice-notation