autolayout on galleryHeader and galleryFooter