Device (100, 200) for grouping containers, comprising a first conveyor belt for transporting the containers in a first transport direction; a container receiving device; a second conveyor belt which is arranged between the first conveyor belt and the container receiving device; a transfer device which is configured to transfer at least some of the containers from the first conveyor belt to the second conveyor belt transversely to the first transport direction, and to transfer at least some of the containers transferred to the second conveyor belt to the container receiving device transversely to the first transport direction; a first rail system oriented in parallel to the first transport direction; a second rail system oriented in parallel to the first transport direction; a first motor device, in particular a long stator motor device, which is arranged above the first conveyor belt, the second conveyor belt, and the container receiving device, and which is configured to move the transfer device for transferring the respective containers, wherein the transfer device comprises a first shuttle element movable along the first rail system with a number of engagement elements of which each at least partially extends transversely to the first transport direction, so that the transfer device is configured, by means of the engagement elements, to group the respective containers on the second conveyor belt and/or the container receiving device and to transfer the respective containers; and a second motor device, in particular a second long stator motor device, which is arranged above the first conveyor belt, the second conveyor belt and the container receiving device and which is configured to move a second shuttle element along the second rail system, and wherein the second shuttle element is coupled to the first shuttle element, in particular via a coupling rod, such that by a relative movement of the coupled first and second shuttle elements in the first transport direction the engagement elements can be guided transversely to the first transport direction; characterized in that the second motor device is arranged offset, in the first transport direction, with respect to the first motor device. a first conveyor belt for transporting the containers in a first transport direction; a container receiving device; a second conveyor belt which is arranged between the first conveyor belt and the container receiving device; a transfer device which is configured to transfer at least some of the containers from the first conveyor belt to the second conveyor belt transversely to the first transport direction, and to transfer at least some of the containers transferred to the second conveyor belt to the container receiving device transversely to the first transport direction; a first rail system oriented in parallel to the first transport direction; a second rail system oriented in parallel to the first transport direction; a first motor device, in particular a long stator motor device, which is arranged above the first conveyor belt, the second conveyor belt, and the container receiving device, and which is configured to move the transfer device for transferring the respective containers, wherein the transfer device comprises a first shuttle element movable along the first rail system with a number of engagement elements of which each at least partially extends transversely to the first transport direction, so that the transfer device is configured, by means of the engagement elements, to group the respective containers on the second conveyor belt and/or the container receiving device and to transfer the respective containers; and a second motor device, in particular a second long stator motor device, which is arranged above the first conveyor belt, the second conveyor belt and the container receiving device and which is configured to move a second shuttle element along the second rail system, and wherein the second shuttle element is coupled to the first shuttle element, in particular via a coupling rod, such that by a relative movement of the coupled first and second shuttle elements in the first transport direction the engagement elements can be guided transversely to the first transport direction; characterized in that the second motor device is arranged offset, in the first transport direction, with respect to the first motor device.