Get the first and last 3 elements of list `l`,l[:3] + l[-3:]