remove selection from page before snapping