adjust thumbnail layout