.collapsed {
    height: 310px;
    overflow: hidden;
}

.expanded {

    overflow: auto;
}