i used 1 of those filters for bout a week and didnt think they where much gd. you would prob be better with a proper sponge filter or a diy 1.
and yes the air pump sits outside the tank.
also depending on the size of the tank u could get a proper filter for inside the tank. if its only a small tank prob something like a interpet mini would be gd