Revert "Made slice's second argument optional."

This reverts commit 7335483ce545630a1783c8d83c8782ecda8813fa.