Rewrote .slice using list expression