working swiping gesture .. logic is not very correct yet