range remove for snapshot; also fix bug: only remove keys that are visible