if no image then not showing image space and if no title not showing the title space