Sub-structure formation in starless cores