I think the Jim/shoes plot might be something sadder. Perhaps a departed love? He's buying the shoes as a gift for a woman he can never give them to. There didn't seem to be anything sexual about the way he was looking at/touching the shoes at the end of the episode.