fix thumbnail centering when next/prev buttons used