Performancefix

Fixed the performance of the transition and moved the lazy image load
after the page switching transition.