added excludedElements to prevent swiping on specific elements