Add condition to thumbnail