def METHOD_NAME(self, position):
    widget = self._layout.itemAtPosition(position[0], position[1])
    if widget:
        freePos = self.getFreePosition()
        self._layout.removeItem(widget)
        self._layout.addItem(widget, freePos[0], freePos[1])