prepare for show picture and sort by time