split text and image  classes