Fix edge slide issue