update gap layers