condition based on image slider