everything works but the tab selected image resizing