Update card layout.