Complex sentence: When he attended a sports festival, he slid down the railing of stairs and kept on running, so his clothes were a mess afterwards.
Split into simpler sentences: When he attended a sports festival, he slid down the railing of stairs and kept on running. So his clothes were a mess afterwards.