Separation of timescales in a two-layered network