We could just inline the two instances of widget_slice, referencing Array.prototype.slice directly.