In the beginning of the experiment, the oil settles above the water because it is less dense. When you add salt to the to the cup, the salt sinks to the bottom of the cup since it is heavier than the other two liquids. The salt carries a blob of oil with it. As the salt begins to dissolve in the water, it releases the oil which floats back up to the top.