add grid and css for card flip