writing a jqeury function to hide the duplicate image