Complex sentence: The legs continue to twitch after they are detached because'pacemakers' are located in the ends of the first long segment (femur) of their legs.
Split into simpler sentences: The legs continue to twitch after they are detached. This is because there are'pacemakers' located in the ends of the first long segment (femur) of their legs.