Remove swipe_ratio parameter when only one layer is visible