Fix for issue with last gallery item floating to the right