reload gallery on resize / orientation change