fix entry css prev/next logic