Fixed back button behaviour with swipe and galleries