Usually to put something in a particular position relative to something other, you create amn empty placeholder object and make it the child object of that something other (shelf in your case) to denote desired object position relative to another object no matter how it’s placed in the world.