add prefetch for gallery

add prefetch for gallery