make slicing work for empty slice