Add directory_or_options optional in gesture on_swipe

This will follow the others gesture (and the documentation)