Added horizontal and vertical offset for swiping

Oops!!Changed it.