Fixes swipe not working if gallery is opened again