fixed thumbnail going off the screen on the right side