Fix for #1197 - touch on mobile breaks if tapping first slide before changing

I've changed the declaration for `dx` so it's set to `null` to begin with. This fixes the problem I raised in #1197