restructure modal and flexslider markup
updated index