Improved description of soft layered materials with van der Waals density functional theory