Swipe sample fix

This fixes the Sample page of swipe gesture