fixing 1px white space between tabs on animation

we have to draw in rect, when the tab bar is animated,
image doesn't get displayed if we draw in bounds and we have 1px empty space between tabs