fix swipe and gradient overlay