Semigroups have layers: a generalisation of stratified semigroups