More reliable post counting on AJAX refresh
Remove flicker from gallery and improve look on mobile