gallery: optimization size & front page