При этом
for all that
at the same time

You should consider "при этом" as a common set expression. "При этом" refers to the previous action/situation, so "этом" is kinda a substitution of the described situation.