Slicing 3d Array Python Memory