adapting cards width to fill overall container and manage right margins