added top/bottom positioning parameter