how to assign a negative layer and positive layer in same image