Only slice arguments if contents is a function