added support for right, left and below tabs