There are several ways to do this, but Karro is right in that layer masks is the "correct" way in that it's non destructive.