Perhaps this is a bit clearer, you could do this instead:
```ruby
slot_range.slots.first(2).each do |slot|
...
end
```

The same using `last` to take the n last items