Made left/right buttons to be part of the x-gallery