Interaction of gap flow with flapping dynamics of two side-by-side elastic foils