open and closed card layout