properly clip spans against gspans and update gspan