Fix gotoPreview reference, try to handle swipes