Add div classes and minor styling for before and after images
Rebuilt main query, removed irrelevant attachment and mimetype catches