preload galleries and videos