Structure and dynamics of layered systems