get element locations