Trithorax-group and Polycomb-group proteins interact with chromosomal elements, termed PRE/TREs, to ensure stable heritable maintenance of the transcriptional state of nearby genes. Regulatory elements that bind both groups of proteins are termed maintenance elements (MEs). Some of these MEs maintain the initial activated transcriptional state of a nearby reporter gene through several rounds of mitosis during development. Here, we show that expression of hedgehog in the posterior compartment of the Drosophila wing results from the communication between a previously defined ME and a nearby cis-regulatory element termed the C enhancer. The C enhancer integrates the activities of the Notch and Hedgehog signalling pathways and, from the early wing primordium stage, drives expression to a thin stripe in the posterior compartment that corresponds to the dorsal-ventral compartment boundary. The ME maintains the initial activated transcriptional state conferred by the C enhancer and contributes to the expansion, by growth, of its expression domain throughout the posterior compartment. Communication between the ME and the C enhancer also contributes to repression of gene expression in anterior cells. Most interestingly, we present evidence that enhancers and MEs of different genes are interchangeable modules whose communication is involved in restricting and expanding the domains of gene expression. Our results emphasize the modular role of MEs in regulation of gene expression within growing tissues.