You can add breaks between periods:
Then by default all double lessons cannot span over these breaks.
If you allow certain double lessons to span while others not that you can define for each subject individually if double lessons of this subject can or cannot span over the breaks. You can do this in subject Constraints:
This article was viewed 75956 times.38579 / 75956