Chemistry across dust and gas gaps in protoplanetary disks: modelling the co-spatial molecular rings in terms of HD 100546 disk