Update medium-slider.js

Added data-attrib support,fixed slow transition issue, Jquery dependency will be removed in the next commit(hopefully).