make gallery extend content.