Sporting Lisbon had to wait until extra time to beat cross-town rivals Benfica and qualify for the last 16 of the Taca de Portugal, thanks to a winner from Algerian Islam Slimani.