smoothen transition from gallery to post detail page.