New degrees of freedom for metamaterials and metasurfaces: from hidden spatial dimensions to dynamical structures