Added horizontal and vertical offset for swiping