Added condition for vertical drag of the slider

Need to wait for the approach till we decide on getting the width of the
slider bar for writing further code.
added orientation attribute in the template html