removed overflow from medium and large cards