def move_to_slice(self):
        """Moves the current window to the slice."""
        win = self.group.current_window
        old_slice = self._slice.window
        if old_slice:
            self._slice.remove(old_slice)
            self.fallback.add_client(old_slice)
            self.layouts[old_slice] = self.fallback
        self.fallback.remove(win)
        self._slice.add_client(win)
        self.layouts[win] = self._slice
        self.group.layout_all()
Moves the current window to the slice.
libqtile/layout/slice.py