How would you implement sliding?

Double! Anything on this would be lovely!