refactored post previewer, but it expands and collapses all entries at once