There are constraints on the functions `f` that we accept in the slide functions. We need to describe this in the docs. The code is hard to parse and hard to say what is actually accepted in `f`.