changed div to close before images start to enable larger images