slidify function

Create a rolling (sliding) version of any function