Revert due to regressions: "Fixed #333: Do not allow the floating elements to overflow to the other cards"

This reverts commit f8513bb9951105dc9affdaeb59bddd2af11b43d1.