Selects the right layer