Swap parameter order to better match Python slice syntax