The undulation instability in layered systems under shear flow – a simple model