Fixed #333: Do not allow the floating elements to overflow to the other cards