What you are experiencing is too small a depth of field. You will need to raise your f-stop to increase the DOF and get more of the coral in focus. the catch 22 of this is, your shutter speeds will have to go up as your f-stop goes up...because of this you will HAVE to use a tripod, and you can't get sharp pics of moving corals.