improve gallery for better performance at lenta