adjust card layout, to be both dev and production friendly