Getting part of a slice