Updated animation sliding with max-height