Sync with numpy's slice operation