bootstrap alerts and correct images sorting