Collective behavior of confined growing bacterial monolayers