Implement layout reversal as per #336
- compactLayout() now reverses the changes made by fluidLayout, synchtubeLayout, hdLayout