Multi-purpose slider implementation of jquery.hammer.js