Perfected manual collapse/expand.