remove layout block if media gallery is removed