adds necessary markup for lazy loading