apply card layout