Examples are a method of periodically modulating the thickness of active layers or guide layers, a method of forming periodic current-blocking layers adjacent to active layers, and a method of forming periodic light absorption layers adjacent to active layers.